package com.ysd.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ysd.entity.Product;
import com.ysd.mapper.ProductMapper;
import com.ysd.service.ProductService;

@Service
public class ProductServiceImpl implements ProductService {

	@Autowired
	private ProductMapper productMapper;
	
	@Override
	public List<Product> findProducts(Product product) {
		return productMapper.getProducts(product);
	}
	
	@Override
	public Product findProductById(int id) {
		return productMapper.getProductById(id);
	}
	
}
